<?php

namespace app\admin\model\xlzxinfo;

use think\Model;


class Tags extends Model
{

    

    

    // 表名
    protected $name = 'mental_xlzxinfo_tags';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];



    /*
     * 组装老师擅长领域
     * */
    public static function getTags($tags)
    {
        $tags_ids = explode(',',$tags);
        return self::whereIn('id',$tags_ids)->select();
    }







}
